package com.service.scheduling.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.service.dao.mapper.SysBorrowConfigMapper;
import com.service.dao.model.SysBorrowConfig;
import com.service.scheduling.service.SysBorrowConfigService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class SysBorrowConfigServiceImpl extends ServiceImpl<SysBorrowConfigMapper, SysBorrowConfig>
        implements SysBorrowConfigService {

    @Autowired
    private SysBorrowConfigMapper sysBorrowConfigMapper;
    /**
     * 查询最新借贷系统配置
     *
     * @return
     */
    @Override
    public SysBorrowConfig getLastBorrowConfig() {
        return sysBorrowConfigMapper.getLastBorrowConfig();
    }
}
